package db

import (
	"os"

	_ "github.com/go-sql-driver/mysql"
	"github.com/go-xorm/xorm"
)

var (
	MysqlEngine *xorm.Engine
)

func InitDB() (err error) {
	MysqlEngine, err = xorm.NewEngine("mysql", os.Getenv("MYSQL_HOST"))
	MysqlEngine.ShowSQL(false)
	return err
}
